package org.nokatag.dbgrid;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

public class NDBGridDataQueryItem {

	private Long showPage=0L;//当前页码
	private Long pageSize=0L;//页大小
	private String sql;//sql
	private String sumsql;//树形状态下汇总列的sql
	private String countsql;//获取总行数的sql
	private String wsql;//sql where
	private List<CellParItem> parList=null;//查询条件
	private String 	pagedescorname= null;//实际排序方式
	private String 	pagedescorasc= null;//当前页导出到excel
	private String formatcell=null;//格式化列
	private String sumformatcell=null;//格式化汇总列
	private HttpServletRequest request=null;
	private List<CellParItem> cellName = null;//列名
	private String sumcells = null;//汇总列
	
	
	public NDBGridDataQueryItem( Long showPage,Long pageSize,String sql,String wsql,List<CellParItem> parList,String pagedescorname,String pagedescorasc,String formatcell,List<CellParItem> cellName,String sumcells,String sumformatcell, HttpServletRequest request,String sumsql,String countsql){
		this.showPage = showPage;
		this.pageSize = pageSize;
		this.sql = sql;
		this.wsql = wsql;
		this.parList = parList;
		this.pagedescorname = pagedescorname;
		this.pagedescorasc = pagedescorasc;
		this.formatcell=formatcell;
		this.cellName=cellName;
		this.request=request;
		this.sumcells = sumcells;
		this.sumformatcell = sumformatcell;
		this.sumsql = sumsql;
		this.countsql = countsql;
	}
	
	public Long getShowPage() {
		return showPage;
	}
	public void setShowPage(Long showPage) {
		this.showPage = showPage;
	}
	public Long getPageSize() {
		return pageSize;
	}
	public void setPageSize(Long pageSize) {
		this.pageSize = pageSize;
	}
	public String getSql() {
		return sql;
	}
	public void setSql(String sql) {
		this.sql = sql;
	}
	public String getWsql() {
		return wsql;
	}
	public void setWsql(String wsql) {
		this.wsql = wsql;
	}
	public List<CellParItem> getParList() {
		return parList;
	}
	public void setParList(List<CellParItem> parList) {
		this.parList = parList;
	}
	public String getPagedescorname() {
		return pagedescorname;
	}
	public void setPagedescorname(String pagedescorname) {
		this.pagedescorname = pagedescorname;
	}
	public String getPagedescorasc() {
		return pagedescorasc;
	}
	public void setPagedescorasc(String pagedescorasc) {
		this.pagedescorasc = pagedescorasc;
	}

	public String getFormatcell() {
		return formatcell;
	}

	public void setFormatcell(String formatcell) {
		this.formatcell = formatcell;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public List<CellParItem> getCellName() {
		return cellName;
	}

	public void setCellName(List<CellParItem> cellName) {
		this.cellName = cellName;
	}

	public String getSumcells() {
		return sumcells;
	}

	public void setSumcells(String sumcells) {
		this.sumcells = sumcells;
	}

	public String getSumformatcell() {
		return sumformatcell;
	}

	public void setSumformatcell(String sumformatcell) {
		this.sumformatcell = sumformatcell;
	}

	public String getSumsql() {
		return sumsql;
	}

	public void setSumsql(String sumsql) {
		this.sumsql = sumsql;
	}

	public String getCountsql() {
		return countsql;
	}

	public void setCountsql(String countsql) {
		this.countsql = countsql;
	}
}
